#ifndef NETCOMPLETEEVENT_H
#define NETCOMPLETEEVENT_H

#include "netevent.h"

#define NET_BUFFER_DEFAULT_SIZE     1024*3

class NetCompleteEvent : public NetEvent
{
public:
    NetCompleteEvent(Type type);
    ~NetCompleteEvent();

    const void *data();

    size_t length();

    size_t dataLength();

    void setData(const void *buf, size_t size);

protected:
    unsigned char m_data[NET_BUFFER_DEFAULT_SIZE];

    size_t m_current;
};

#endif // NETCOMPLETEEVENT_H
